package com.xique.park.bean.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.xique.park.bean.transform.web.refund.RefundStatusConverter;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 退款记录导出结果类
 *
 * @author WLD
 */
@Data
@ColumnWidth(40)
public class RefundOrderExportDto implements Serializable {

    @ExcelProperty("原订单号")
    private String orderNo;

    @ExcelProperty("原支付序列号")
    private String paySsn;

    @ExcelProperty("车牌")
    private String plate;

    @ExcelProperty("退款单号")
    private String refundId;

    @ExcelProperty("原订单支付金额（元）")
    private BigDecimal orderAmount;

    @ExcelProperty("退款金额（元）")
    private BigDecimal trxAmount;

    /**
     * 退款单状态
     * <p>
     * 00-受理失败
     * 01-受理成功
     * 02-退款中
     * 03-退款成功
     * 04-退款失败
     */
    @ExcelProperty(value = "退款状态", converter = RefundStatusConverter.class)
    private String refundStatus;

    @ExcelProperty("退款失败原因")
    private String refundMsg;

    @ExcelProperty("退款创建时间")
    private Date applyTime;

    @ExcelProperty("退款完成时间")
    private Date completeDateTime;

    @ExcelProperty("操作人")
    private String createUser;

    @ExcelProperty("退款原因")
    private String refundReason;

}
